package com.idp.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.idp.system.dto.SysButtonDto;
import com.idp.system.entity.SysButtonEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 页面按钮Mapper
 * @author king
 */
@Mapper
public interface SysButtonMapper extends BaseMapper<SysButtonEntity> {

	/**
	 * 通过用户id获取用户的权限按钮
	 * @param userId
	 * @return
	 */
	List<SysButtonDto> findRuleButtons(String userId);
	
}